import request from '@/utils/request'

const videoApi = {
  // 获取外部视频列表
  getOfficekList(data) {
    return request({
      url: 'webinar/api/polyv/getMeetingVideoByMid',
      method: 'get',
      params: data
    })
  },
  // 视频剪辑
  clipVideo(data) {
    return request({
      url: '/polyv/clipVideo',
      method: 'post',
      data
    })
  },
  // 获取视频列表
  getVideoList(data) {
    return request({
      url: '/webinar/newapi/video/getVideoList',
      method: 'get',
      params: data
    })
  },

  // 获取原视频下载地址
  getVideoUrlDownload(data) {
    return request({
      url: '/webinar/newapi/video/getVideoUrlDownload',
      method: 'get',
      params: data
    })
  },

  // 视频中心- 删除视频
  deletedByVideoId(query) {
    return request({
      url: '/webinar/newapi/video/deletedByVideoId',
      method: 'get',
      params: query
    })
  },
  // 视频中心- 上下架
  undercarriageByVideoId(query) {
    return request({
      url: '/webinar/newapi/video/undercarriageByVideoId',
      method: 'get',
      params: query
    })
  },
  // 获取视频签名
  getSigns(data) {
    return request({
      url: '/polyv/getSign',
      method: 'get',
      params: data
    })
  },
  // 获取授权用户行业线
  selectTagList(data) {
    return request({
      url: '/weixinlogin/selectTagList?username',
      method: 'get',
      params: data
    })
  },
  // 共享用户-单位类型和职位
  selectUnitType(data) {
    return request({
      url: '/webinar/newapi/selectUnitType',
      method: 'get',
      params: data
    })
  },
  // 共享用户-列表
  videoAuthorizedByVideoId(data) {
    return request({
      url: '/webinar/newapi/video/videoAuthorizedByVideoId',
      method: 'get',
      params: data
    })
  },
  // 查询当前任务
  clipMergeTaskList(data) {
    return request({
      url: '/polyv/clipMergeTaskList',
      method: 'get',
      params: data
    })
  },
  // 视频提问列表总和
  getList(data) {
    return request({
      url: '/webinar/newapi/ask/getList',
      method: 'get',
      params: data
    })
  },
  // 视频上传操作获取cc视频信息
  getUploadVideoInfo(data) {
    return request({
      url: '/webinar/newapi/video/getUploadVideoInfo',
      method: 'get',
      params: data
    })
  },
  // 获取视频详情
  videoInfoById(data) {
    return request({
      url: '/webinar/newapi/video/videoInfoById',
      method: 'get',
      params: data
    })
  },
  // 获取厂商邮箱
  selectCompany(data) {
    return request({
      url: '/webinar/newapi/video/selectCompany',
      method: 'get',
      params: data
    })
  },
  // 查看共享用户详情
  selectAuthorizedById(data) {
    return request({
      url: '/webinar/newapi/video/selectAuthorizedById',
      method: 'get',
      params: data
    })
  },
  // 上传视频
  uploadVideo(data) {
    return request({
      url: '/webinar/newapi/video/uploadVideo',
      method: 'post',
      data
    })
  },
  // 发送邮箱
  sendEmailByUserIdList(data) {
    return request({
      url: '/webinar/newapi/video/sendEmailByUserIdList',
      method: 'post',
      data
    })
  },
  // 视频统计概览
  selectVideoData(data) {
    return request({
      url: '/webinar/newapi/data/selectVideoData',
      method: 'get',
      params: data
    })
  },
  // 视频统计行业统计图
  selectVideoList(data) {
    return request({
      url: '/webinar/newapi/data/selectVideoList',
      method: 'get',
      params: data
    })
  },
  // 视频统计播放top榜
  selectVideoTop(data) {
    return request({
      url: '/webinar/newapi/data/selectVideoTop',
      method: 'get',
      params: data
    })
  },
  // 查看服务的消耗情况列表
  getCompanyServiceConsume(data) {
    return request({
      url: '/webinar/newapi/company/getCompanyServiceConsume',
      method: 'get',
      params: data
    })
  },
  // 查看用户列表
  getMeetPersonByImshowId(data) {
    return request({
      url: '/webinar/newapi/person/getMeetPersonByImshowId',
      method: 'get',
      params: data
    })
  },
  // 查看用户详情信息
  getMeetPersonByPersonid(data) {
    return request({
      url: '/webinar/newapi/person/getMeetPersonByPersonid',
      method: 'get',
      params: data
    })
  },
  // 获取用户下的会议列表
  getMeetingByImshoId(data) {
    return request({
      url: '/webinar/newapi/person/getMeetingByImshoId',
      method: 'get',
      params: data
    })
  },
  // 获取用户下的视频列表
  getVideoByImshowId(data) {
    return request({
      url: '/webinar/newapi/person/getVideoByImshowId',
      method: 'get',
      params: data
    })
  },
  // 视频名称模糊查询视频列表
  getVideoByTitle(data) {
    return request({
      url: '/webinar/newapi/video/getVideoByTitle',
      method: 'get',
      params: data
    })
  },
  // 获取标签列表
  getLabelList(data) {
    return request({
      url: '/webinar/label/getLabelList',
      method: 'get',
      params: data
    })
  },
  getLabelPageList(data) {
    return request({
      url: '/webinar/label/getLabelPage',
      method: 'get',
      params: data
    })
  },
  // 新增标签
  getSaLabel(data) {
    return request({
      url: '/webinar/label/getSaLabel',
      method: 'get',
      params: data
    })
  },
  // 更新标签
  updateLabelById(data) {
    return request({
      url: '/webinar/label/updateLabelById',
      method: 'get',
      params: data
    })
  },
  // 更新标签
  deleteLabelById(data) {
    return request({
      url: '/webinar/label/deleteLabelById',
      method: 'get',
      params: data
    })
  },
  // 视频回复接口
  addContentByUsername(data) {
    return request({
      url: '/webinar/newapi/ask/addContentByUsername',
      method: 'post',
      data
    })
  },
  // 查看视频回复接口
  selectAskById(data) {
    return request({
      url: '/webinar/newapi/ask/selectAskById',
      method: 'get',
      params: data
    })
  },
    // 视频提问回复列表
    updateQuestionByVideoId(data) {
      return request({
        url: '/webinar/newapi/ask/updateQuestionByVideoId',
        method: 'get',
        params: data
      })
    },
  // 视频授权共享用户发送Email
  sendEmailByVidoeList(data) {
    return request({
      url: '/webinar/newapi/video/sendEmailByVidoeList',
      method: 'post',
      data
    })
  },
      // 自助会视频兑换
      exchangeSelfMeetingToVideo(data) {
        return request({
          url: '/webinar/newapi/video/exchangeSelfMeetingToVideo',
          method: 'get',
          params: data
        })
      },
    // 绑定仪器
    bindProductToVideo(data) {
    return request({
      url: '/webinar/newapi/video/bindProductToVideo',
      method: 'post',
      params: data
    })
  },
}
export default videoApi
